package com.ChengXiZi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 评论表
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Builder
@Accessors(chain = true)
@ApiModel(value = "comments对象", description = "评论表")
public class Comments {


    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("帖子id")
    private Long postId;

    @ApiModelProperty("评论者id")
    private Long userId;

    @ApiModelProperty("父评论")
    private Long parentId;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论时间")
    private LocalDateTime createTime;

    @ApiModelProperty("点赞数")
    private Integer likes;
}
